"""
---------------------------------------------
    PROJECT:        flaskforfilm
    FILE NAME :     views
    DESCRIPTION:
    AUTHOR:         python
---------------------------------------------

@卫佳陆
"""
from . import homeblueprint
from flask import render_template, redirect, url_for


@homeblueprint.route('/login/')
def login():
    return render_template("home/login.html")


@homeblueprint.route("/logout/")
def logout():
    return redirect(url_for('home.login'))


@homeblueprint.route("/register/")
def register():
    return render_template('home/register.html')


@homeblueprint.route("/user/")
def user():
    return render_template('home/user.html')


@homeblueprint.route("/pwd/")
def pwd():
    return render_template('home/pwd.html')


@homeblueprint.route("/loginlog/")
def loginlog():
    return render_template('home/loginlog.html')


@homeblueprint.route("/comments/")
def comments():
    return render_template('home/comments.html')


@homeblueprint.route("/moviecol/")
def moviecol():
    return render_template('home/moviecol.html')


@homeblueprint.route("/")
def index():
    return render_template('home/index.html')


@homeblueprint.route("/animation/")
def animation():
    return render_template('home/animation.html')


@homeblueprint.route("/search/")
def search():
    return render_template('home/search.html')


@homeblueprint.route("/play/")
def play():
    return render_template("home/play.html")

if __name__ == "__main__":
    pass
